Repository navigation
Implement Rust testing framework - #187
Closed
vishwamartur wants to merge 1 commit into
Closed
vishwamartur wants to merge 1 commit into
vishwamartur wants to merge 1 commit into
Conversation
Related to CapSoftware#184 Implement a scalable testing system for Rust functions in the Cap desktop application. * **Add test cases**: Create a new file `apps/desktop/src-tauri/tests/desktop_tests.rs` with test cases for `start_recording`, `stop_recording`, `copy_file_to_path`, `copy_screenshot_to_clipboard`, and `export_video`. * **Update package.json**: Add a new command `test:desktop` in `apps/desktop/package.json` to run the Rust tests using `cargo test --manifest-path src-tauri/Cargo.toml`.
Contributor
|
@vishwamartur is attempting to deploy a commit to the Cap Software Inc Team on Vercel. A member of the Team first needs to authorize it. |
|
💵 To receive payouts, sign up on Algora, link your Github account and connect with Stripe. |
asegal-inflight
added a commit
to inflightsoftware/inflight-recorder
that referenced
this pull request
Apr 15, 2026
Addresses Dependabot alerts CapSoftware#185, CapSoftware#186, CapSoftware#187 (GHSA class: rand >= 0.7 < 0.9.3 unsound under custom-logger + thread_rng combo — UB via aliased mutable reference to BlockRng<ReseedingCore> when ThreadRng reseeds inside a logger callback). Changes: - apps/desktop/src-tauri/Cargo.toml: rand 0.8.5 -> 0.9.3 - crates/workspace-hack/Cargo.toml: rand 0.8 -> 0.9 (both [dependencies] and [build-dependencies] entries) - apps/desktop/src-tauri/src/platform/macos/delegates.rs: migrate call-site to the 0.9 API (rand::thread_rng() -> rand::rng(), rand::distributions::Alphanumeric -> rand::distr::Alphanumeric) - Cargo.lock regenerated; Inflight crate now on rand 0.9.4, other transitive users bumped from 0.9.2 -> 0.9.4 (rand 0.8.5 remains only via phf_generator + tungstenite — those are not flagged by these alerts) Build verification: - cargo check -p workspace-hack: PASSED on Windows (all 0.9 transitive deps resolve and compile) - cargo check -p Inflight: cannot verify end-to-end on this Windows host (FFmpeg bindgen requires libclang which isn't configured locally). The modified call-site is #[cfg(target_os = "macos")]-gated so macOS CI is the authoritative check. Migration is mechanical and matches the rand 0.9 release notes. Closes SEC-332 (pending PR merge + macOS CI green) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related to #184
Implement a scalable testing system for Rust functions in the Cap desktop application.
apps/desktop/src-tauri/tests/desktop_tests.rswith test cases forstart_recording,stop_recording,copy_file_to_path,copy_screenshot_to_clipboard, andexport_video.test:desktopinapps/desktop/package.jsonto run the Rust tests usingcargo test --manifest-path src-tauri/Cargo.toml.CMD:
cargo add --dev tokio --dev anyhow --dev tempfile --dev assert_cmd --dev predicates/claim #184